# coding:utf-8
from flask import abort

def filter_url(url):
    def wrapper(f):
        def sub_wrapper(*args, **kwargs):
            try:
                if url == 'name':
                    return f(*args, **kwargs)
                else:
                    abort(403)
            except:
                abort(403)
        return sub_wrapper
    return  wrapper